﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="consultasol.aspx.cs" Inherits="Chilis.consultasol" %>

<%@ Register Assembly="MsgBox" Namespace="MsgBox" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <link href="css/cssFormulario.css" rel="stylesheet" type="text/css" />
    <title>Chilis Perú - Administrador Web</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
      <script type = "text/javascript">
          function Confirm() {
              var confirm_value = document.createElement("INPUT");
              confirm_value.type = "hidden";
              confirm_value.name = "confirm_value";
              if (confirm("Desea anular esta solicitud ?")) {
                  confirm_value.value = "Yes";
              } else {
                  confirm_value.value = "No";
              }
              document.forms[0].appendChild(confirm_value);
          }
    </script>
     <style type="text/css">
         .style1
         {
             height: 231px;
         }
         .style2
         {
             height: 14px;
         }
     </style>
</head>
<body>
  
   
 <div class="classBody">
  <table width="1024px" height="768px" cellpadding="11" class="TBLCabezaInterno">
    <tr>
      <td><div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td rowspan="2"><img src="img/logo_admin_login.png" border="0"></td>
            <td width="340" valign="top" align="right"><div align="right" class="cabeza"><a href="#" target="_top"><strong>cerrar sesi&oacute;n</strong></a></div></td>
            </tr>
          <tr>
            <td valign="bottom"><div align="right" class="cabeza">Usuario:&nbsp;Admnistrador&nbsp;&nbsp;|&nbsp;&nbsp; Ingreso:&nbsp;02-02-2013  16:04:17</div></td>
            </tr>
          </table>
        </div></td>
    </tr>
  </table>
  <div id="menuN1">
    <table width="1024px" height="768px" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="20%" ><a href="#">Calidad</a></td>
        <td width="20%" class="N1activo" ><a href="#">Franquicias</a></td>
        <td width="20%"><a href="#">Gerencial General</a></td>
        <td width="20%"><a href="#">Adquisiciones</a></td>
        <td width="20%"><a href="#">Eventos</a></td>
      </tr>
    </table>
  </div>
  <div id="menuN2">
    <table width="1024px" height="768px" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <strong><a href="#">Actualizar Candidato</a></strong>
          &nbsp;&nbsp;|&nbsp;&nbsp;
        <a href="actualizarsol.aspx">Actualizar Solicitud Franquicia</a> &nbsp;&nbsp;|&nbsp;&nbsp;
        <a href="buscarSolEntrevista.aspx">Actualizar Entrevista Candidato</a></td>
      </tr>
    </table>
  </div>
  <div id="principal">
  <h1>Consulta de Solicitudes</h1>
      <form id="form2" runat="server">
    <table width="1024px" height="768px" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
    <asp:Label ID="Label4" runat="server" Text="Buscar Por" 
             CssClass="EtiquetasImportantes"></asp:Label>
   
          </td>
        <td>
    
        <asp:DropDownList ID="ddlTipo" runat="server" Width="186px" CssClass="Combos">
            <asp:ListItem>TODOS</asp:ListItem>
            <asp:ListItem>Nro Solicitud</asp:ListItem>
        </asp:DropDownList>
   
        &nbsp;&nbsp;&nbsp;&nbsp;
   
        <asp:TextBox ID="txtBuscar" runat="server" Width="265px" 
            CssClass="CajasDeTexto"></asp:TextBox>
    
        &nbsp;&nbsp;&nbsp;
    
        <asp:Button ID="btnBuscar" runat="server" Text="Buscar" Width="132px" 
            onclick="btnBuscar_Click" CssClass="boton" />
   
          </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td></td>
      </tr>
      <tr>
        <td>
    
    <asp:Label ID="Label2" runat="server" Text="CANDIDATO :" 
             CssClass="EtiquetasImportantes"></asp:Label>
    
          </td>
        <td>
    
    <asp:Label ID="lblCandidato" runat="server" Text="" 
             CssClass="EtiquetasImportantes"></asp:Label>
   
          </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center" colspan="2">
   
    <asp:Label ID="lblMENSAJE" runat="server" CssClass="EtiquetasImportantes"></asp:Label>
    
          </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td class="style1" colspan="2" valign="top">
   
     <asp:GridView ID="gvlistado" runat="server" AutoGenerateColumns="False">
         <Columns>
             <asp:TemplateField HeaderText="Solicitud">
                 <ItemTemplate>
                     <asp:ImageButton ID="imgBtnEditar" runat="server" Height="22px" 
                         ImageUrl="~/img/editar.png" Width="20px" OnClick="imgBtnEditar_Click" />
                     <asp:ImageButton ID="imgBtnCerrar" runat="server" Height="22px" 
                         ImageUrl="~/img/btn_cerrar.gif" Width="19px" OnClick="imgBtnEliminar_Click" Text = "Raise Confirm" OnClientClick = "Confirm()" />
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="Nro Solicitud" DataField="SolCodigo" />
             <asp:BoundField HeaderText="Fecha Registro"  DataField="SolStrFecha"/>
             <asp:BoundField HeaderText="Estado"  DataField="SolEstados"/>
             <asp:BoundField HeaderText="Resumen"  DataField="Solresumen"/>
             <asp:TemplateField HeaderText="Solicitud">
                 <ItemTemplate>
                     <asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"SolEstados") %>' Visible="false" ></asp:Label>
                     <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/img/lupa.png" OnClick="imgBtnVer_Click" />
                  <asp:Label ID="lblCandidato" runat="server" visible="false" Text='<%# DataBinder.Eval(Container.DataItem,"SolCodCandidato") %>'></asp:Label>
                  <asp:Label ID="lblSolicitud" runat="server" visible="false" Text='<%# DataBinder.Eval(Container.DataItem,"SolCodSolicitud") %>'></asp:Label>
                 </ItemTemplate>
             </asp:TemplateField>
         </Columns>
         <HeaderStyle CssClass="Cabecera" />
         <RowStyle CssClass="Cuerpo" />
    </asp:GridView>
   
          </td>
      </tr>
      <tr>
        <td class="style2"></td>
        <td class="style2"></td>
      </tr>
      <tr>
        <td>
   
    <asp:Label ID="Label9" runat="server" Text="Total de Solicitudes :" 
             CssClass="EtiquetasImportantes"></asp:Label>
   
          </td>
        <td>
   
    <asp:Label ID="lblcantidad" runat="server" Text="0" 
             CssClass="EtiquetasImportantes"></asp:Label>
   
          </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
      
      <cc1:MsgBox ID="MsgBox1" runat="server" />
    <asp:HiddenField ID="hdnCategoria" runat="server" />
      </form>
<p>&nbsp;</p>
</div>
  <div class="footer">Chilis 2013. Todos los derechos reservados</div>
</div>

</body>
</html>